package com.example.websocket.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @ author 韩
 * time: 2024/3/8 11:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class Pyq {
    private int id;
    private String username;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime date;
    private List<LikePo> likes;
    private List<CommentPo> comments;
}

